const express = require('express')
const app = express();
const cors = require('cors')
app.use(cors())
app.use(express.json());
const router = require('./controller/index')
app.use('/api',router)
app.listen(8080,() => {
    console.log('服务器启动成功，监听8080端口')
})